﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="add_xgxz.aspx.cs" Inherits="系统管理_add_xgxz" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>添加相关险种</title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
        <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" CellPadding="4"
            DataKeyNames="code" DataSourceID="SqlDataSource1" ForeColor="#333333">
            <RowStyle BackColor="#F7F6F3" ForeColor="#333333" />
            <Columns>
                <asp:BoundField DataField="code" HeaderText="资金账户" ReadOnly="True" SortExpression="code" />
                <asp:BoundField DataField="info" HeaderText="描述信息" SortExpression="info" />
            </Columns>
            <FooterStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <PagerStyle BackColor="#284775" ForeColor="White" HorizontalAlign="Center" />
            <SelectedRowStyle BackColor="#E2DED6" Font-Bold="True" ForeColor="#333333" />
            <HeaderStyle BackColor="#5D7B9D" Font-Bold="True" ForeColor="White" />
            <EditRowStyle BackColor="#999999" />
            <AlternatingRowStyle BackColor="White" ForeColor="#284775" />
        </asp:GridView>
        <asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:insurance_dbConnectionString %>"
            SelectCommand="SELECT * FROM [资金账户表] WHERE ([code] = @code)">
            <SelectParameters>
                <asp:QueryStringParameter DefaultValue="x" Name="code" QueryStringField="code" Type="String" />
            </SelectParameters>
        </asp:SqlDataSource>
        <br />
 <fieldset>
 <legend>添加相关险种</legend>
     <br />

        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False">返回相关险种列表</asp:LinkButton><br />
        <br />
        <table>
            <tr>
                <td>
        <asp:Label ID="Label1" runat="server" Text="资金账户："></asp:Label></td>
                <td>
        <asp:Label ID="code" runat="server"></asp:Label></td>
            </tr>
            <tr>
                <td>
        <asp:Label ID="Label3" runat="server" Text="险种名称："></asp:Label></td>
                <td>
        <asp:TextBox ID="name" runat="server" MaxLength="50"></asp:TextBox>
     <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="name"
         Display="Dynamic" ErrorMessage="不能为空"></asp:RequiredFieldValidator>&nbsp;
                    <asp:DropDownList ID="DropDownList1" runat="server" OnSelectedIndexChanged="DropDownList1_SelectedIndexChanged" AutoPostBack="True">
                        <asp:ListItem Selected="True" Value="1">请选择</asp:ListItem>
                        <asp:ListItem>养老保险</asp:ListItem>
                        <asp:ListItem>医疗保险</asp:ListItem>
                        <asp:ListItem>大病保险</asp:ListItem>
                        <asp:ListItem>工伤保险</asp:ListItem>
                        <asp:ListItem>失业保险</asp:ListItem>
                        <asp:ListItem>生育保险</asp:ListItem>
                    </asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td style="height: 21px">
        <asp:Label ID="Label4" runat="server" Text="计算类型："></asp:Label></td>
                <td style="height: 21px"><asp:RadioButtonList
            ID="type" runat="server" RepeatDirection="Horizontal" AutoPostBack="True" OnSelectedIndexChanged="RadioButtonList1_SelectedIndexChanged">
            <asp:ListItem Selected="True" Value="1">按比例算</asp:ListItem>
            <asp:ListItem Value="2">按时间算</asp:ListItem>
        </asp:RadioButtonList></td>
            </tr>
            <tr>
                <td>
        <asp:Label ID="Label5" runat="server" Text="缴费比例："></asp:Label></td>
                <td>
        <asp:TextBox ID="BiLi" runat="server"></asp:TextBox>
                    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" ControlToValidate="BiLi"
                        Display="Dynamic" ErrorMessage="不能为空"></asp:RequiredFieldValidator>
                    <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" ControlToValidate="BiLi"
                        Display="Dynamic" ErrorMessage="必须为数字" ValidationExpression="^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0-9]*[1-9][0-9]*\.[0-9]+)|([0-9]*[1-9][0-9]*))$"></asp:RegularExpressionValidator></td>
            </tr>
            <tr>
                <td>
        <asp:Label ID="Label6" runat="server" Text="描述信息："></asp:Label></td>
                <td>
        <asp:TextBox ID="info" runat="server" MaxLength="255" Rows="3" TextMode="MultiLine"></asp:TextBox></td>
            </tr>
            <tr>
                <td colspan="2">
        <asp:Button ID="Button1" runat="server" Text="提交" OnClick="Button1_Click" /></td>
            </tr>
        </table>
     &nbsp;<br />
     <strong>说明</strong>：<br />
     <ol>
         <li>险种名称为 养老保险，医疗保险，失业保险，工伤保险，生育保险等</li>
         <li>计算类型为 1-按照缴费比例按月计算&nbsp; 2-按时一次性缴费（大病险）</li>
         <li>缴费比例为&nbsp; 1-100%，0.6-60%，0.2-20% 依次类推</li>
     </ol>
        
 </fieldset>
       
        </div>

    </form>
</body>
</html>
